import { World } from '@ecs/index'
import { createBackground, createFloor, createObstacles } from './runtime'
import { createBird, createScore, createStart } from './player'

/**
 * 创建游戏场景
 * @param world 世界实例
 * @returns 无
 */
export function createScene(world: World): void {
  createBackground(world)
  createFloor(world)
  createScore(world)
  createBird(world)
}

export { createObstacles, createStart }
